package com.open.cloud.rbac.entity.role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author wangzengzhou01
 * @since 2025-01-23
 */

@Data
@ApiModel(value = "ViewPostRolePermissionMenu对象", description = "VIEW")
@TableName("view_post_role_permission_menu")
public class ViewPostRolePermissionMenu extends Model<ViewPostRolePermissionMenu> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "岗位Id")
    @TableField("post_id")
    private String postId;

    @ApiModelProperty(value = "角色Id")
    @TableField("role_id")
    private String roleId;

    @ApiModelProperty(value = "权限Id")
    @TableField("permission_id")
    private String permissionId;

    @ApiModelProperty(value = "菜单Id")
    @TableField("menu_id")
    private String menuId;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
